export default {
  props:{
    styleType:{
      type:Number,
      default:0
    },
    width:{
      type:String,
      default:'100%'
    },
    height:{
      type:String,
      default:'100%'
    }
  },
  data(){
    return {
      loading: true,
      isShowGridTree:false
    }
  },
  computed:{
    styleTypeClass:function (){
      let str = 'style-type__'+ this.styleType;
      return {
        [str]:true
      }
    }
  },
  mounted() {
    //取消加载动画
    this.cancelLoading();
  },
  methods: {
    cancelLoading() {
      let that = this;
      setTimeout(() => {
        that.loading = false;
      }, 500);
    },
  },
}
